package org.bluedream.core.module.entity.bill.stkIn.dtl;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.bluedream.comm.base.bill.BillBodyEntity;
import org.bluedream.comm.utils.excel.ExcelType;
import org.bluedream.comm.utils.excel.FieldType;
import org.bluedream.core.module.entity.goods.Goods;

import java.math.BigDecimal;


/**
 * @ClassName StkInDtl      采购入库单明细
 * @Description TODO
 * @Author foxsand
 * @Data 2021-11-18 14:00
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "StkInDtl")
public class StkInDtl extends BillBodyEntity<StkInDtl> {
    private static final long serialVersionUID = 1253546523367499607L;

    @FieldType(excelType = ExcelType.IMPORT , excelFieldName = "条码" , fieldSort = 0)
    private String barcode;

    @FieldType(excelType = ExcelType.IMPORT , excelFieldName = "数量" , fieldSort = 1)
    private BigDecimal qty;

    @TableField(exist = false)
    private Goods goods;

    public StkInDtl(String billNUm) {
        this.billNum = billNUm;
    }

    public StkInDtl(long limit , long pageSize) {
        super(limit , pageSize);
    }
}
